// 地址 相关的 请求
import request from "@/utils/request";

/**
 * @description 添加地址
 * @param {{is_default:string,name:string,phone:string,province:string,city:string,town:string,street:string,detail:string}} info
 */
export function addAddress(data) {
    return request({
        method: 'POST',
        url: '/frontend/consignee/add/',
        data
    })

}
/**
 * 
 * @param {page limit} data 
 * @returns 
 */
export function getAddressList(data) {
    return request({
        method: 'POST',
        url: '/frontend/consignee/list/',
        data
    })
}

/**
 * 
 * @param {*} data 
 * @returns 
 */
export function updateAddress(data) {
    return request({
        method: 'POST',
        url: '/frontend/consignee/update/',
        data
    })
}

/**
 * 
 * @param {id} data 
 * @returns 
 */
export function deleteAddress(data) {
    return request({
        method: 'POST',
        url: '/frontend/consignee/delete/',
        data
    })
}
